package javab;

import db.DBUtil;

public class Actable {
	private String acid;
	private String acname;
	private int age;
	private String address;
	private int balance;
	public String getAcid() {
		return acid;
	}
	public void setAcid(String acid) {
		this.acid = acid;
	}
	public String getAcname() {
		return acname;
	}
	public void setAcname(String acname) {
		this.acname = acname;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getBalance() {
		return balance;
	}
	public void setBalance(int balance) {
		this.balance = balance;
	}
	
	//存钱
	public void saveBalance(int balance) {
		DBUtil db=new DBUtil();
		db.updateAdd(balance);
	}
	
	//取钱
	public void drawBalance(int balance) {
		DBUtil db=new DBUtil();
		db.updateLess(balance);
	}

}
